package com.hk.webapp.service.impl;

import com.hk.webapp.bean.CareerJob;
import com.hk.webapp.dao.CareerJobMapper;
import com.hk.webapp.service.CareerJobService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class CareerJobServiceImpl implements CareerJobService {

    @Resource
    private CareerJobMapper careerJobMapper;
    @Override
    public List<CareerJob> GetEntityList() {
        return careerJobMapper.GetEntityList();
    }

    @Override
    public CareerJob GetEntityById(Integer id) {
        return careerJobMapper.selectByPrimaryKey(id);
    }
}
